<?php

namespace app\admin\model\bargain;

use app\admin\model\store\GoodsSku;
use app\common\model\TimeModel;

class Bargain extends TimeModel
{

    protected $name = "bargain";

    protected $deleteTime = "delete_time";

    public function goodsSku()
    {
        return $this->belongsTo(GoodsSku::class,'sku_id','id');
    }

    public static function whereFind($where,$field = [])
    {
        return self::where($where)->field($field)->find();
    }

}